﻿using Lanting.Model.Util;
using System;
using System.ComponentModel;

namespace Lanting.Model
{
    public class User : IdEntity,ICloneable
    {
        /// <summary>
        /// 部门
        /// </summary>
        public string department { get; set; }
        /// <summary>
        /// 部门Id
        /// </summary>
        public int departmentId { get; set; }
        /// <summary>
        /// 上一次登录时间
        /// </summary>
        public DateTime? lastDate { get; set; }
        /// <summary>
        /// 上一次登录Ip
        /// </summary>
        public string lastIp { get; set; }
        /// <summary>
        /// 登录次数
        /// </summary>
        public int loginCount { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string password { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string phone { get; set; }
        /// <summary>
        /// 注册日期
        /// </summary>
        public string regDate { get; set; }
        /// <summary>
        /// 角色Id
        /// </summary>
        public int roleId { get; set; }
        /// <summary>
        /// 角色名
        /// </summary>
        public string rolename { get; set; }
        /// <summary>
        /// 工号
        /// </summary>
        public string usercode { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string username { get; set; }
        /// <summary>
        /// 组织编码
        /// </summary>
        public string orgCode { get; set; }

        public object Clone()
        {
            throw new NotImplementedException();
        }
        public User CloneMember()
        {
            return (User)this.MemberwiseClone();
        }
    }
}
